<?php $facebook_api = get_option('facebook-api'); ?>
<div class="share_button">
	<ul>
		<li><a class="share dropdown" href="#">share</a></li>
		<li class="sublinks">
			<div class="addthis_toolbox addthis_default_style " addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>" addthis:description="An Example Description">
				<a class="addthis_button_linkedin"><img src="<?php bloginfo('template_directory'); ?>/img/a_in.png" alt="facebook" /></a>
				<a class="addthis_button_facebook"><img src="<?php bloginfo('template_directory'); ?>/img/a_fb.png" alt="linkedin" /></a>	
			</div>
		</li>		
	</ul>
</div>

<!-- AddThis Button BEGIN -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-502cade01249398e"></script>
<!-- AddThis Button END -->

<script type="text/javascript">
$(function(){
	$('.dropdown').mouseenter(function(){
		$('.sublinks').stop(false, true).hide();
		var submenu = $(this).parent().next();
		submenu.css({
			position:'absolute',
			top: $(this).offset().top + $(this).height() + 'px',
			left: $(this).offset().left + 'px',
			zIndex:1000
		});		
		submenu.stop().slideDown(300);		
		submenu.mouseleave(function(){
			$(this).slideUp(300);
		});
	});
});
</script>